import request from "@/utils/request";
import { parseStrEmpty } from "@/utils/ruoyi";

//
export const diaryService = {

    list(query) {
        return request({
            url: "/api/diary/list",
            method: "get",
            params: query,
        });
    },

    postSave(data) {
        return request({
            url: `/api/diary/save-or-update`,
            method: "post",
            data,
        });
    },
};

//
export const transferService = {

    list(query) {
        return request({
            url: "/api/transfer/list",
            method: "get",
            params: query,
        });
    },

    postSave(data) {
        return request({
            url: `/api/transfer/save-or-update`,
            method: "post",
            data,
        });
    },
};
